package com.socialsoftware.MediaCommunication;

import android.content.Intent;

import com.socialsoftware.MediaCommunication.service.CallService;
import com.socialsoftware.MediaCommunication.service.WebSocketService;

/**
 * Application class for initializing app-wide components
 */
public class Application extends android.app.Application {
    
    @Override
    public void onCreate() {
        super.onCreate();
        
        // 不再自动启动服务，改为在用户登录后启动
        // startServices();
    }
    
    // 保留此方法以供参考，但不再自动调用
    private void startServices() {
        Intent webSocketServiceIntent = new Intent(this, WebSocketService.class);
        startService(webSocketServiceIntent);
        
        // Start call service for handling incoming calls
        Intent callServiceIntent = new Intent(this, CallService.class);
        startService(callServiceIntent);
    }
} 